package com.example.demo.nuoqi.service;

import com.example.demo.nuoqi.pojo.Applyapproval;
import com.github.pagehelper.PageInfo;

import java.util.List;

/****
 * @Author:shenkunlin
 * @Description:Applyapproval业务层接口
 * @Date 2019/6/14 0:16
 *****/
public interface ApplyapprovalService {

    /***
     * Applyapproval多条件分页查询
     * @param applyapproval
     * @param page
     * @param size
     * @return
     */
    PageInfo<Applyapproval> findPage(Applyapproval applyapproval, int page, int size);

    /***
     * Applyapproval分页查询
     * @param page
     * @param size
     * @return
     */
    PageInfo<Applyapproval> findPage(int page, int size);

    /***
     * Applyapproval多条件搜索方法
     * @param applyapproval
     * @return
     */
    List<Applyapproval> findList(Applyapproval applyapproval);

    /***
     * 删除Applyapproval
     * @param id
     */
    void delete(Integer id);

    /***
     * 修改Applyapproval数据
     * @param applyapproval
     */
    void update(Applyapproval applyapproval);

    /***
     * 新增Applyapproval
     * @param applyapproval
     */
    void add(Applyapproval applyapproval);

    /**
     * 根据ID查询Applyapproval
     * @param id
     * @return
     */
     Applyapproval findById(Integer id);

    /***
     * 查询所有Applyapproval
     * @return
     */
    List<Applyapproval> findAll();

    Applyapproval get(Applyapproval applyapproval);

}
